import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useLoginStore = defineStore('login', () => {
  const showLoginDialog = ref(false)

  const openLoginDialog = () => {
    showLoginDialog.value = true
  }

  const closeLoginDialog = () => {
    showLoginDialog.value = false
  }

  return {
    showLoginDialog,
    openLoginDialog,
    closeLoginDialog
  }
})
